<template>
  <div>
    <h1>我是Home的内容</h1>
    <br>
    <div class="btn-group" role="group" aria-label="...">
      <router-link replace type="button" class="btn btn-default"  active-class="active" to="/home/news">News</router-link>
      <router-link replace type="button" class="btn btn-default"  active-class="active" to="/home/message">Message</router-link>
    </div>
    <br><br>
    <router-view></router-view>
  </div>
</template>

<script>
    export default {
        name: "Home",
        /*mounted(){
          console.log("Home组件被挂载了")
          window.homeRoute=this.$route
          window.homeRouter=this.$router
        },
        beforeDestroy() {
          console.log("Home组件被销毁了")
        }*/
    }
</script>

<style scoped lang="less">
</style>
